package com.cq.digitalemployee.shiro.redis;

import org.apache.shiro.session.Session;
import org.apache.shiro.session.mgt.eis.SessionIdGenerator;

import java.io.Serializable;
import java.util.UUID;

/**
 *
 * sessionID生成器
 *
 * @author zzz
 */
public class ShiroRedisSessionIdGenerator implements SessionIdGenerator {
    @Override
    public Serializable generateId(Session session) {
        return UUID.randomUUID().toString();
    }
}
